var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
  // 找到指定页面模板，渲染
  // 同时向模板中传入数据
  res.render('_index', {
    title: 'Hello World',
    abc: "哈哈哈哈哈啊哈",
    aa:"<em>hello</em>",
    bb:"<em>world</em>",
    cc:3.1415,
    dd:false,
    ee:function(){
      return "这是一个函数"
    },
    ff:{name:"admin"},
    gg:["北京","上海","广州","深圳","杭州"],
    hh:undefined,
    ii:NaN,
    jj:null
  });
});

// 暴露路由模块
module.exports = router;
